<?php
/**
 * AppVersionController.php
 *
 * @copyright   2023 thingsworld.com.cn - All Rights Reserved
 * @link        http://thingsworld.com.cn/
 * @author      stiffer.chen <chenl@thingsworld.com.cn>
 * @created     2023-04-26 17:17:33
 * @modified    2023-04-26 17:17:33
 *
 */

namespace App\Http\Controllers;

use App\Repositories\AppVersionRepo;

class AppVersionController extends BaseModuleController
{
    public function android()
    {
        try {
            $data = AppVersionRepo::android();
            return message('获取成功', true, $data);
        } catch (\Exception $e) {
            return message($e->getMessage(), false);
        }
    }

    public function ios()
    {
        try {
            $data = AppVersionRepo::ios();
            return message('获取成功', true, $data);
        } catch (\Exception $e) {
            return message($e->getMessage(), false);
        }
    }
}